home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Appearance = 0 'Flat
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Dialog
- Caption = "PicBtn Sample 2"
- ClientHeight = 1110
- ClientLeft = 1815
- ClientTop = 2145
- ClientWidth = 2910
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1515
- Left = 1755
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1110
- ScaleWidth = 2910
- Top = 1800
- Width = 3030
- Begin PicbtnLib.PicBtn Justify
- Height = 615
- Index = 3
- Left = 2040
- TabIndex = 3
- Top = 240
- Width = 615
- _version = 65538
- _extentx = 1085
- _extenty = 1085
- _stockprops = 79
- caption = "Justify"
- BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
- name = "MS Sans Serif"
- charset = 1
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- autosize = 0 'False
- buttoncolor = -2147483633
- gap = 2
- mode = 2
- pictureup = "PICBTNS2.frx":0000
- placement = 1
- mousefocus = -1 'True
- value = 0 'False
- font3d = 0
- appearance = 1
- End
- Begin PicbtnLib.PicBtn Justify
- Height = 615
- Index = 2
- Left = 1440
- TabIndex = 2
- Top = 240
- Width = 615
- _version = 65538
- _extentx = 1085
- _extenty = 1085
- _stockprops = 79
- caption = "Center"
- BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
- name = "MS Sans Serif"
- charset = 1
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- autosize = 0 'False
- buttoncolor = -2147483633
- gap = 2
- mode = 2
- pictureup = "PICBTNS2.frx":00EA
- placement = 1
- mousefocus = -1 'True
- value = 0 'False
- font3d = 0
- appearance = 1
- End
- Begin PicbtnLib.PicBtn Justify
- Height = 615
- Index = 1
- Left = 840
- TabIndex = 1
- Top = 240
- Width = 615
- _version = 65538
- _extentx = 1085
- _extenty = 1085
- _stockprops = 79
- caption = "Right"
- BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
- name = "MS Sans Serif"
- charset = 1
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- autosize = 0 'False
- buttoncolor = -2147483633
- gap = 2
- mode = 2
- pictureup = "PICBTNS2.frx":01D4
- placement = 1
- mousefocus = -1 'True
- value = 0 'False
- font3d = 0
- appearance = 1
- End
- Begin PicbtnLib.PicBtn Justify
- Height = 615
- Index = 0
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 615
- _version = 65538
- _extentx = 1085
- _extenty = 1085
- _stockprops = 79
- caption = "Left"
- BeginProperty font {FB8F0823-0164-101B-84ED-08002B2EC713}
- name = "MS Sans Serif"
- charset = 1
- weight = 400
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- autosize = 0 'False
- buttoncolor = -2147483633
- gap = 2
- mode = 2
- pictureup = "PICBTNS2.frx":02BE
- placement = 1
- mousefocus = -1 'True
- value = 0 'False
- font3d = 0
- appearance = 1
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- Justify(0).Value = True ' starts down
- End Sub
- Private Sub Justify_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- Dim I As Integer
- '
- ' if this isn't the left mouse button, get out
- '
- If (Button <> 1) Then
- Exit Sub
- End If
- '
- ' cycle through all buttons
- '
- For I = 0 To 3
- If I = Index Then
- '
- ' lower the button that was pressed
- '
- Justify(I).Value = True
- Else
- '
- ' raise the buttons that weren't
- '
- Justify(I).Value = False
- End If
- Next I
- End Sub
-